package com.sc.nft.entity.vo.metaWalletDTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class AdminLinkCollectionPageVO {


    @ApiModelProperty(value = "藏品名称")
    private String collectionName;

    @ApiModelProperty(value = "关联藏品图片")
    private String collectionImg;

    @ApiModelProperty(value = "发行方名称")
    private String daoName;

    @ApiModelProperty(value = "发行量")
    private Integer sumCount;

    @ApiModelProperty(value = "发行价")
    private String issuePrice;

    @ApiModelProperty(value = "关联藏品名称")
    private String linkCollectionName;

    @ApiModelProperty(value = "关联藏品id")
    private String linkCollectionId;

    @ApiModelProperty(value = "关联发行量")
    private String linkSumCount;

    @ApiModelProperty(value = "关联发行价")
    private BigDecimal linkIssuePrice;

    @ApiModelProperty(value = "关联藏品图片")
    private String linkCollectionImg;

    @ApiModelProperty(value = "关联发行方名称")
    private String linkDaoName;

    @ApiModelProperty(value = "关联时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    public void setIssuePrice(BigDecimal issuePrice) {
        this.issuePrice = issuePrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }


}















































